/*
 * WriteUserbitsTimerTask.java
 *
 * Created on Jul 23, 2007, 9:52:05 PM
 *
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.mbari.vcr.timer;

import org.mbari.util.NumberUtil;

/**
 *
 * @author brian
 */
public class WriteTimeTimerTask extends VCRTimerTask {

    public WriteTimeTimerTask() {
        super();
    }

    public void run() {
        int timeSeconds = (int) (System.currentTimeMillis() / 1000L);
        byte[] b = NumberUtil.toByteArray(timeSeconds, true);
        getVcr().presetUserbits(b);
    }
}
